package com.question.common.annotation;

import com.question.common.enums.DataIgnoreConvertEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 数据转换忽略注解
 *
 * @author star
 * @since 2023/9/6
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DataIgnoreConvert {

    /**
     * 数据类型
     *
     * @return String
     */
    DataIgnoreConvertEnum type() default DataIgnoreConvertEnum.ALL;
}
